package com.zx.controller;

import com.zx.entity.Order;
import com.zx.service.OrderService;
import com.zx.service.impl.OrderServiceImpl1;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author jackwu
 * @version 1.0
 * @date 2020-03-08
 */
@RestController
public class OrderController1 {

    @Resource
    private OrderServiceImpl1 orderServiceImpl1;

    /**
     * 测试高并发
     * @return 订单
     */
    @GetMapping("/order/message")
    @ResponseStatus(HttpStatus.OK)
    public String test() {
        orderServiceImpl1.message();
        return "测试数据";
    }

    /**
     * 测试高并发
     * @return 订单
     */
    @GetMapping("/order/message1")
    @ResponseStatus(HttpStatus.OK)
    public String test1() {
        orderServiceImpl1.message();
        return "测试数据";
    }

}
